home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 18 - Serious (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 18 - Serious (19xx)(Topik Public Domain)(PD)[WB].adf / BindNams / readme < prev    next >
Text File  |  1989-10-01  |  3KB  |  76 lines

  1.  
  2. *** TOPIK Note : A very powerful program....comes with C source file and the
  3. relevant makefile all in this directory !!
  4.  
  5.  
  6.  
  7.  
  8.                 BindNames V1.0 by Dave Haynie
  9.  
  10.  
  11.         BindNames is a rather simple hack I came up with to solve the 
  12. "Assign" problem.  Like most folks with large hard disks containing lots 
  13. of different programs, my Startup-Sequence was starting to get full of 
  14. Assign statements.  While that alone isn't necessarily enough to make 
  15. most go out and write a program, I was starting to think of this as an 
  16. inelegance.  Nearly every other new program I installed onto my system 
  17. needed a new set of logical names, and so for every new program I ended 
  18. up having to edit my Startup-Sequence.  I also had to pay attention to 
  19. the ordering of Assignments, since obviously I couldn't base an 
  20. assignment on one that hadn't been made yet.  The end result was that 
  21. the Startup Sequence was getting rather ugly, with no sign of change on 
  22. the immediate horizon.  
  23.  
  24.         Since problems should be solved by those who see them, I came up 
  25. with BindNames.  BindNames is designed to do all of the logical name 
  26. assignments you need at once.  It looks for any number of files in the 
  27. directory "SYS:Names".  The format of such files is something like this 
  28. (to quote my "SYS:Names/System" file): 
  29.  
  30. BIN:    SYS:bin
  31. OS:     SYS:os
  32. C:      BIN:c 
  33. COM:    BIN:Com 
  34. L:      OS:L
  35. FONTS:  PATH:FD:Amiga,FD:PD,FD:PS,FD:Terms,FD:CityDesk 
  36. FD:     OS:Fonts 
  37. S:      OS:s
  38. DEVS:   OS:Devs
  39. LIBS:   OS:Libs
  40. ENV:    RAM:Env 
  41. T:      RAM:T
  42.  
  43.         BindNames will read all name files before making any
  44.  
  45. assignments, and it can figure out dependencies, so it doesn't matter
  46. how you order the names.  It will create directories that it can't find, 
  47. such as RAM:Env and RAM:T in the above example, and it will generate
  48. warnings for name assignments that it can't resolve.  It also accepts
  49. several options, of the form: 
  50.  
  51.         BindNames [SYSTEM device] [VERBOSE] [TEST] 
  52.  
  53.         The SYSTEM device option causes BindNames to re-assign the SYS: 
  54. name to the given device before searching for SYS:Names.  For example, 
  55. my main system disk is called FH0:, but I boot from DH2: (sure sounds 
  56. like A2090A madness to me too, but what can I say), so my 
  57. Startup-Sequence says "BindNames >NIL: SYSTEM fh0:".  
  58.  
  59. The VERBOSE switch causes BindNames to list each name and equivalence 
  60. as it runs.  The TEST switch does the same thing, but doesn't actually 
  61. make the name assignments. 
  62.  
  63.         Using BindNames, I've managed to get every single "Assign" 
  64. command out of my Startup-Sequence.  And if I need to add a series of 
  65. assignments for a new program, I can just create a SYS:Names file for 
  66. that program.  That makes installing the program much easier, and also 
  67. keeps all the logical names for a particular program in an obvious 
  68. location, which makes modifying the system setup much simpler in the 
  69. future. 
  70.  
  71.         BindNames is public domain, do with as you please. 
  72.  
  73.  
  74.                                         -Dave Haynie 
  75.                                          3/14/89 
  76.